<?php
/**
 * @Author: rocky
 * Date: 2019/9/29
 * Time: 16:42
 */


namespace app\shop\resource;


use app\common\resource\BaseResource;

class CollectResoure extends BaseResource
{
    public function toArray($data){
        return [
            'id'=>$data['good']['id'],
            'title'=>$data['good']['title'],
            'mini_title'=>$data['good']['mini_title'],
            'price'=>$data['good']['price'],
            'logo'=>$data['good']['logo'],
            'sale_count'=>$data['good']['specs_sum'],
        ];
    }
}